class FlashInfo
  ERROR = 0
  NOTICE = 1

  attr_reader :type, :message
  
  def initialize(message_, type_)
    @message = message_
    @type = type_
  end
  
  def self.get_error(message_)
    FlashInfo.new(message_, ERROR)
  end

  def self.get_notice(message_)
    FlashInfo.new(message_, NOTICE)
  end
end